package com.huhuamin.leaf.config;

import com.huhuamin.core.IdService;
import com.huhuamin.core.SegmentServiceImpl;
import com.huhuamin.core.SnowflakeServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IdServiceConfiguration {

    @Bean
    IdService segment() {
        return new SegmentServiceImpl();
    }

    @Bean
    IdService snowflake() {
        return new SnowflakeServiceImpl();
    }

}
